import numpy as np
a1 = np.arange(10)
a1[a1>4] = 10
print(a1)
a1 = np.where(a1<5,1,5)
print(a1)
a1=a1.clip(2,4)
print(a1)